package com.lyz.anli;

/**
 * 验证码生成
 */
public class De3yzm {
    public static void main(String[] args) {
        String str ="";
        for (int i = 0; i <= 5; i++) {
            double random = Math.random()*3;
            switch((int)random){
                case 0:
                    str+=(int)(Math.random()*10);
                    break;
                case 1:
                    str+=(char)('A'+(int)(Math.random()*25+1));
                    break;
                case 2:
                    str+=(char)('a'+(int)(Math.random()*25+1));
                    break;
                default:
            }
        }
        System.out.println(str);
    }
}
